<html>
<head>
<%@ include file="../includes/comun.jsp"%>
<style>
 .th0101 {width: 20%} .td0101 {width: 20%}
 .th0102 {width: 20%} .td0102 {width: 20%}
 .th0103 {width: 20%} .td0103 {width: 20%}
 .th0104 {width: 20%} .td0104 {width: 20%}
 .th0105 {width: 20%} .td0105 {width: 20%}
 .tdDeno {vertical-align:top; padding-left: 0px !important; border-collapse: none;}
 .tdDenoDV {text-align: right; width: 50%}
 .monto  {text-align: right; width: 100px;}
</style>
</head>
<body>
<table class="tblTitulo"><tr><td>Consulta de los Saldos Finales</td></tr></table>

<!-- INI: SALDO DE LAS CAJAS -->
<div class="cuadrotitle">I.- Datos de la Caja</div>
<table class="tblListado">
<tr><th rowspan="2">Terminal</th>
	<th rowspan="2">Registro</th>
	<c:forEach items="${cache.divisas}" var="divisa"><th colspan="3">${divisa.descripcion}</th></c:forEach></tr>
<tr><c:forEach items="${cache.divisas}" var="divisa"><th>Monto</th><th>Estado</th><th>L&iacute;mite</th></c:forEach></tr>
<c:forEach items="${datos.terminales}" var="terminal">
<tr><td>${terminal.terminal}</td>
	<td>${terminal.registro}</td>
	<c:forEach items="${cache.divisas}" var="divisa">
		<c:set var="existeST" value="false"/>
		<c:forEach items="${datos.saldosTerminal}" var="saldoTerm">
			<c:if test="${terminal.terminal == saldoTerm.terminal and saldoTerm.divisaId == divisa.codigoparametro}">
				<c:set var="existeST" value="true"/>
				<td class="monto">${saldoTerm.monto}</td><td>${saldoTerm.estado}</td><td>${saldoTerm.limite}</td>
			</c:if>
		</c:forEach>
		<c:if test="${existeST == false}">
			<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
		</c:if>
	</c:forEach>
	</tr>
</c:forEach>
</table>
<!-- FIN: SALDO DE LAS CAJAS -->
<hr/>
<!-- INI: SALDO DE LAS BOVEDAS -->
<div class="cuadrotitle">II.- Datos de la B&oacute;veda</div>
<table class="tblListado">
<thead>
<tr>
<c:forEach items="${cache.divisas}" var="divisa">
	<th width="${porce}">${divisa.descripcion}</th>
</c:forEach>
</tr>
</thead>
<tbody>
<c:forEach items="${cache.tiposDenominacion}" var="tipoDeno">
<tr>
	<c:forEach items="${cache.divisas}" var="divisa">
	<td class="tdDeno" width="${porce}">
	<table class="tblListado">
	<tr><td colspan="2">${tipoDeno.descripcion}</td></tr>
	<c:forEach items="${datos.saldosDenominacion}" var="saldoDeno">
	<c:if test="${saldoDeno.divisaId == divisa.codigoparametro and tipoDeno.codigoparametro == saldoDeno.tipoDenominacionId}">
	<tr><td class="tdDenoDV">${saldoDeno.valorTexto}</td><td class="tdDenoDV">${saldoDeno.valorIngresado}</td></tr>
	</c:if>
	</c:forEach>
	</table>
	</td>
	</c:forEach>
</tr>
</c:forEach>
<tr>
	<c:forEach items="${cache.divisas}" var="divisa">
	<td>Totales</td>
	</c:forEach>
</tr>
</tbody>
</table>
<!-- FIN: SALDO DE LAS BOVEDAS -->

<form name="form1" id="form1" method="post" action="<%=request.getContextPath()%>/confirmacioningreso.do?method=confirmarIngreso">
<table width="100%" align="center" height="100%">
	<tr>
		<td valign="top">
			<div id="maestro">
				<table align="center" cellspacing="3" class="table3" width="100%">
					<tr>
						<td colspan="6" class="cuadrotitle">I. Consultar Saldos Finales</td>
					</tr><tr>
					<td colspan="6" class="cuadrotitle">Moneda: PEN</td>
				</tr>
				<tr>
					<td colspan=6 width="100%">
						<table width="100%">
							<tr>
								<td class="tceldatabla1" width="15%">Terminal</td>
								<td width="15%">&nbsp;</td>
								<td class="tceldatabla1" width="15%">Registro</td>
								<td class="tceldatabla1" width="15%">Monto</td>
								<td class="tceldatabla1" width="15%">Estado</td>
								<td class="tceldatabla1" width="15%">Limite</td>
							</tr>
							<tr>
								<td class="tceldatabla">&nbsp;</td>
								<td>&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
							</tr>
							<tr>
								<td class="tceldatabla">&nbsp;</td>
								<td>&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td colspan="6" class="cuadrotitle">Moneda: DOL</td>
				</tr>
				<tr>
					<td colspan=6 width="100%">
						<table width="100%">
							<tr>
								<td class="tceldatabla1" width="15%">Terminal</td>
								<td width="15%">&nbsp;</td>
								<td class="tceldatabla1" width="15%">Registro</td>
								<td class="tceldatabla1" width="15%">Monto</td>
								<td class="tceldatabla1" width="15%">Estado</td>
								<td class="tceldatabla1" width="15%">Limite</td>
							</tr>
							<tr>
								<td class="tceldatabla">&nbsp;</td>
								<td>&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
							</tr>
							<tr>
								<td class="tceldatabla">&nbsp;</td>
								<td>&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td colspan="6" class="cuadrotitle">Moneda: EUR</td>
				</tr>
				<tr>
					<td colspan=6 width="100%">
						<table width="100%">
							<tr>
								<td class="tceldatabla1" width="15%">Terminal</td>
								<td width="15%">&nbsp;</td>
								<td class="tceldatabla1" width="15%">Registro</td>
								<td class="tceldatabla1" width="15%">Monto</td>
								<td class="tceldatabla1" width="15%">Estado</td>
								<td class="tceldatabla1" width="15%">Limite</td>
							</tr>
							<tr>
								<td class="tceldatabla">&nbsp;</td>
								<td>&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
							</tr>
							<tr>
								<td class="tceldatabla">&nbsp;</td>
								<td>&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
								<td class="tceldatabla">&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr class="cuadrocontent">
					<td colspan="6"><hr></td>
				</tr>
				</table>
			</div>
		
		</td>
	</tr>
	<tr>
		<td>
			<div id="detalle">
				<table width="100%">
					<tr class="cuadrocontent">
						<td width="10%">&nbsp;</td>
						<td class="tcelda1" width="10%">Billetes</td>
						<td width="10%">&nbsp;</td>
						<td width="10%">&nbsp;</td>
						<td class="tcelda1" width="10%">Billetes</td>
						<td width="10%">&nbsp;</td>
						<td width="10%">&nbsp;</td>
						<td class="tcelda1" width="10%">Billetes</td>
						<td width="10%">&nbsp;</td>
						<td width="10%">&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 200.00</td>
						<td><input type="text" name="txtBilleteSol200" id="txtBilleteSol200" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">$. 100.00</td>
						<td><input type="text" name="txtBilleteDolar100" id="txtBilleteDolar100" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">&euro;. 500.00</td>
						<td><input type="text" name="txtBilleteEuro500" id="txtBilleteEuro500" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 100.00</td>
						<td><input type="text" name="txtBilleteSol100" id="txtBilleteSol100" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">$. 50.00</td>
						<td><input type="text" name="txtBilleteDolar50" id="txtBilleteDolar50" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">&euro;. 200.00</td>
						<td><input type="text" name="txtBilleteEuro200" id="txtBilleteEuro200" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 50.00</td>
						<td><input type="text" name="txtBilleteSol50" id="txtBilleteSol50" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">$. 20.00</td>
						<td><input type="text" name="txtBilleteDolar20" id="txtBilleteDolar20" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">&euro;. 100.00</td>
						<td><input type="text" name="txtBilleteEuro100" id="txtBilleteEuro100" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 20.00</td>
						<td><input type="text" name="txtBilleteSol20" id="txtBilleteSol20" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">$. 10.00</td>
						<td><input type="text" name="txtBilleteDolar10" id="txtBilleteDolar10" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">&euro;. 50.00</td>
						<td><input type="text" name="txtBilleteEuro50" id="txtBilleteEuro50" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 10.00</td>
						<td><input type="text" name="txtBilleteSol10" id="txtBilleteSol10" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">$. 5.00</td>
						<td><input type="text" name="txtBilleteDolar5" id="txtBilleteDolar5" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">&euro;. 20.00</td>
						<td><input type="text" name="txtBilleteEuro20" id="txtBilleteEuro20" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">Monedas</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						<td class="tcelda1">Monedas</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						<td class="tcelda1">Monedas</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 5.00</td>
						<td><input type="text" name="txtMonedaSol5" id="txtMonedaSol5" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">$. 2.00</td>
						<td><input type="text" name="txtMonedaDolar2" id="txtMonedaDolar2" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">&euro;. 10.00</td>
						<td><input type="text" name="txtMonedaEuro10" id="txtMonedaEuro10" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 2.00</td>
						<td><input type="text" name="txtMonedaSol2" id="txtMonedaSol2" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">$. 1.00</td>
						<td><input type="text" name="txtMonedaDolar1" id="txtMonedaDolar1" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
						<td class="tcelda1">&euro;. 5.00</td>
						<td><input type="text" name="txtMonedaEuro5" id="txtMonedaEuro5" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 1.00</td>
						<td><input type="text" name="txtMonedaSol1" id="txtMonedaSol1" class="input2" value="0.00"/></td>
						<td colspan="4">&nbsp;</td>
						<td class="tcelda1">&euro;. 2.00</td>
						<td><input type="text" name="txtMonedaEuro2" id="txtMonedaEuro2" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 0.50</td>
						<td><input type="text" name="txtMonedaSol05" id="txtMonedaSol05" class="input2" value="0.00"/></td>
						<td colspan="4">&nbsp;</td>
						<td class="tcelda1">&euro;. 1.00</td>
						<td><input type="text" name="txtMonedaEuro1" id="txtMonedaEuro1" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 0.20</td>
						<td><input type="text" name="txtMonedaSol02" id="txtMonedaSol02" class="input2" value="0.00"/></td>
						<td colspan="4">&nbsp;</td>
						<td class="tcelda1">&euro;. 0.50</td>
						<td><input type="text" name="txtMonedaEuro05" id="txtMonedaEuro05" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 0.10</td>
						<td><input type="text" name="txtMonedaSol01" id="txtMonedaSol01" class="input2" value="0.00"/></td>
						<td colspan="4">&nbsp;</td>
						<td class="tcelda1">&euro;. 0.20</td>
						<td><input type="text" name="txtMonedaEuro02" id="txtMonedaEuro02" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td>&nbsp;</td>
						<td class="tcelda1">S/. 0.05</td>
						<td><input type="text" name="txtMonedaSol005" id="txtMonedaSol005" class="input2" value="0.00"/></td>
						<td colspan="4">&nbsp;</td>
						<td class="tcelda1">&euro;. 0.10</td>
						<td><input type="text" name="txtMonedaEuro01" id="txtMonedaEuro01" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td colspan="7">&nbsp;</td>
						<td class="tcelda1">&euro;. 0.05</td>
						<td><input type="text" name="txtMonedaEuro005" id="txtMonedaEuro005" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td colspan="7">&nbsp;</td>
						<td class="tcelda1">&euro;. 0.02</td>
						<td><input type="text" name="txtMonedaEuro002" id="txtMonedaEuro002" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td colspan="7">&nbsp;</td>
						<td class="tcelda1">&euro;. 0.01</td>
						<td><input type="text" name="txtMonedaEuro001" id="txtMonedaEuro001" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td colspan="10"><hr></td>
					</tr>
					<tr class="cuadrocontent">
						<td class="tcelda1" colspan="2">Deteriorados</td>
						<td><input type="text" name="txtDeterioradosSol" id="txtDeterioradosSol" class="input2" value="0.00"/></td>
						<td class="tcelda1" colspan="2">Deteriorados</td>
						<td><input type="text" name="txtDeterioradosDolar" id="txtDeterioradosDolar" class="input2" value="0.00"/></td>
						<td class="tcelda1" colspan="2">Deteriorados</td>
						<td><input type="text" name="txtDeterioradosEuro" id="txtDeterioradosEuro" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td class="tcelda1" colspan="2">Patr&oacute;n de Calidad</td>
						<td><input type="text" name="txtPatronCalidadSol" id="txtPatronCalidadSol" class="input2" value="0.00"/></td>
						<td class="tcelda1" colspan="2">Patr&oacute;n de Calidad</td>
						<td><input type="text" name="txtPatronCalidadDolar" id="txtPatronCalidadDolar" class="input2" value="0.00"/></td>
						<td class="tcelda1" colspan="2">Patr&oacute;n de Calidad</td>
						<td><input type="text" name="txtPatronCalidadEuro" id="txtPatronCalidadEuro" class="input2" value="0.00"/></td>
						<td>&nbsp;</td>
					</tr>
					<tr class="cuadrocontent">
						<td class="tcelda1" colspan="2">Total</td>
						<td><input type="text" name="txtTotalSol" id="txtTotalSol" class="input2" value="0.00" disabled="disabled"/></td>
						<td class="tcelda1" colspan="2">Total</td>
						<td><input type="text" name="txtTotalDolar" id="txtTotalDolar" class="input2" value="0.00" disabled="disabled"/></td>
						<td class="tcelda1" colspan="2">Total</td>
						<td><input type="text" name="txtTotalEuro" id="txtTotalEuro" class="input2" value="0.00" disabled="disabled"/></td>
						<td>&nbsp;</td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>
</form>
</body>
</html>